﻿// Math operations

console.log(10 + 4);
console.log(10 - 5);
console.log(10 * 8);
console.log(10 / 2);
console.log(10 % 3);

let result = (10 * 3 - 2) / 5;
console.log(result);

result++;
result--;

result += 5;
result *= 5;
result -= 5;
result /= 2;
result %= 2;

let userName = 'Moriarty';
console.log(userName.length);
console.log(userName.toUpperCase());
console.log(userName.trim());

let hobbies = ['sport', 'cook'];
console.log(hobbies.length);


